#include"SList.h"


//void TestSList1()
//{
//	SLTNode* plist = NULL;
//	SLTPushBack(&plist, 1);
//	SLTPushBack(&plist, 2);
//	SLTPushBack(&plist, 3);
//	SLTPushBack(&plist, 4);
//	SLTPushFront(&plist, 5);
//	SLTPushFront(&plist, 6);
//	SLTPushFront(&plist, 7);
//	SLTPrint(plist);
//	SLTPopBack(&plist);
//	SLTPrint(plist);
//	SLTPopFront(&plist);
//	SLTPrint(plist);
//
//}



void TestSList2()
{
	SLTNode* plist = NULL;
	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);
	SLTPrint(plist);
	SLTNode* ret = SLTFind(plist, 2);
	ret->data *= 2;
	SLTPrint(plist);
	SLTNode* pos = SLTFind(plist, 3);
	SLTInsert(&plist, pos, 5);
	SLTPrint(plist);


}


int main()
{
	/*TestSList1();*/
	TestSList2();

	return 0;
}